package com.rooster.order.feign;


import com.arilia.common.feign.config.FeignConfig;
import com.rooster.common.core.constant.ServiceNameConstants;
import com.rooster.goods.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @description:
 * @Author C_Y_J
 * @create 2021/10/23 14:01
 **/
@FeignClient(
        value = ServiceNameConstants.GOODS_SERVICE,
        configuration = FeignConfig.class,
        fallback = GoodsFeignClientFallback.class
)
@Component
public interface GoodsFeignClient {

    @GetMapping("/goods/findOne1")
    Goods findGoodsById1();

    @GetMapping("/goods/findOne2")
    Goods findGoodsById2();

    @GetMapping("/goods/findOne3")
    Goods findGoodsById3();

    @GetMapping("/goods/findOne4")
    Goods findGoodsById4();

    @GetMapping("/goods/findOne5")
    Goods findGoodsById5();
}
